import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'
import LoginView from '@/views/LoginView.vue'
const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',
      component: LoginView,
    },
    {
      path: '/users',
      name: 'users',
      component: () => import('../views/UsersView.vue'),
    },
    {
      path: '/user/:uuid',
      name: 'user',
      component: () => import('../views/UserView.vue'),
    }
  ],
})

export default router
